package com.djinfo.work.service.impl;

import com.djinfo.work.common.bean.AjaxJson;
import com.djinfo.work.common.service.impl.BaseServiceImpl;
import com.djinfo.work.dao.QsContentDao;
import com.djinfo.work.dao.QsUserQuestionDao;
import com.djinfo.work.dao.impl.DemoDao;
import com.djinfo.work.dao.impl.DictionariesDaoImpl;
import com.djinfo.work.dao.impl.QsUserQuestionDaoImpl;
import com.djinfo.work.entity.*;
import com.djinfo.work.service.QsQuestionService;
import com.djinfo.work.service.QsUserQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;


@Service("qsUserQuestionService")
public class QsUserQuestionServiceImpl extends BaseServiceImpl<QsUserQuestionEntity,QsUserQuestionDaoImpl> implements QsUserQuestionService {

    @Autowired
    private QsUserQuestionDao qsUserQuestionDao;
    @Autowired
    private QsQuestionService qsQuestionService;
    @Autowired
    private QsContentDao qsContentDao;

    @Override
    public AjaxJson getUserQuestionList(HttpServletRequest request) {
        AjaxJson ajaxJson=new AjaxJson();
        HashMap map=new HashMap();
        String userId=(String) request.getSession().getAttribute("userId");
        String hql=" from QsUserQuestionEntity where quId='"+userId+"'";
        List<QsUserQuestionEntity> list=qsUserQuestionDao.getList(hql);
        List<QsUserQuestionEntity> list1=new ArrayList<>();
        for(QsUserQuestionEntity qsUserQuestionEntity:list){
            String qid=qsUserQuestionEntity.getqId();
            QsQuestionEntity qsQuestionEntity=qsQuestionService.getById(qid);
            qsUserQuestionEntity.setQuestionName(qsQuestionEntity.getName());
            list1.add(qsUserQuestionEntity);
        }
        map.put("list",list1);
        ajaxJson.setResult(map);
        return ajaxJson;
    }

    @Override
    public AjaxJson getContentList(String[] contentIds) {
        AjaxJson ajaxJson = new AjaxJson();

        List<QsContentEntity> list = new ArrayList<>();
        List<QsContentEntity> list2 = new ArrayList<>();
        for (String contentId : contentIds){
            QsContentEntity qsContentEntity = (QsContentEntity) qsContentDao.getByPrimaryKey(QsContentEntity.class, contentId);
            list.add(qsContentEntity);
            int order = Integer.parseInt(qsContentEntity.getOrder()) + 1;
            String hql = " from QsContentEntity where titleId='" + qsContentEntity.getTitleId() + "' and order='" + order + "'";
            List<QsContentEntity> list1 = qsContentDao.getList(hql);
            QsContentEntity qsContentEntity1 = list1.get(0);
            list2.add(qsContentEntity1);
        }
        HashMap map=new HashMap();
        map.put("list1",list);
        map.put("list2",list2);
        ajaxJson.setResult(map);
        return ajaxJson;
    }

    @Override
    public HashMap getResultList(String quid) {
        AjaxJson ajaxJson=new AjaxJson();
        QsUserQuestionEntity qsUserQuestionEntity=(QsUserQuestionEntity)qsUserQuestionDao.getByPrimaryKey(QsUserQuestionEntity.class,quid);

        String hql1=" from QsResultEntity where qsId='"+qsUserQuestionEntity.getId()+"' ";
        List<QsResultEntity> list=qsUserQuestionDao.getList(hql1);
        List list1=new ArrayList();
        for(int i=0;i<18;i++){
            list1.add(" 无");
        }
        HashMap map=new HashMap();
        //家族史
        String farmilyHistory="";
        //吸烟史
        String smokeHistory="";
        //饮酒史
        String drinkHistory="";
        //诊断内容
        String checkContent="";
        //糖尿病用药
        String tangniaomedical="";
        //高血压用药
        String highBlood="";
        for(QsResultEntity qsResultEntity:list){
            if(qsResultEntity.getContentId()==null&&"".equals(qsResultEntity.getContentId())){
                qsResultEntity.setContentId("");
            }

            //男女
            if(qsResultEntity.getContentId().equals("402881cd5fb9c133015fb9d786e50001")){
                list1.set(0,"男");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fb9c133015fb9d7dd410002")){
                list1.set(0,"女");
            }
            //姓名
            if(qsResultEntity.getContentId().equals("402881cd5fb9c133015fb9f6a7d6000b")){
                list1.set(1,qsResultEntity.getValue());
            }
            //手机号
            if(qsResultEntity.getContentId().equals("402881cd5fb9c133015fb9f71cde000c")){
                list1.set(2,qsResultEntity.getValue());
            }
            //身份证号
            if(qsResultEntity.getContentId().equals("402881cd5fb9c133015fb9f8058f000d")){
                list1.set(3,qsResultEntity.getValue());
            }
            //社保账号
            if(qsResultEntity.getContentId().equals("402881cd5fb9c133015fb9f8595b000e")){
                list1.set(4,qsResultEntity.getValue());
            }
            //身高
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd6fae5a0001")){
                list1.set(5,qsResultEntity.getValue());
            }
            //体重
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd7185000002")){
                list1.set(6,qsResultEntity.getValue());
            }

            //饮食盐含量
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd8397f30009")){
                list1.set(7,"无盐");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd83d980000a")){
                list1.set(7,"低盐");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd84c9bb000b")){
                list1.set(7,"中盐");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd84c9bb0001")){
                list1.set(7,"高盐");
            }

            //饮食脂含量
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd87ef65000d")){
                list1.set(8,"低脂");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd882e6f000e")){
                list1.set(8,"中脂");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd8886b1000f")){
                list1.set(8,"高脂");
            }

            //一周运动量
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbdb5aafd001d")){
                list1.set(9,"<5小时");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbdb68d92001e")){
                list1.set(9,"5小时~10小时");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbdb6ecbe001f")){
                list1.set(9,">10小时");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbdb74d400020")){
                list1.set(9,">20小时");
            }


            //吸烟史
            if(qsResultEntity.getContentId().equals("402881db5fec08d6015fecb7a2740000")){
                smokeHistory=smokeHistory+" 有吸烟史";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb57b74a000c")){
                smokeHistory=smokeHistory+" 无吸烟史";
            }

            //吸烟多少年
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb4738810000")){
                smokeHistory=smokeHistory+" 吸烟年数<5年";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb47b7bb0001")){
                smokeHistory=smokeHistory+" 吸烟年数5~10年";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb48310d0002")){
                smokeHistory=smokeHistory+" 吸烟年数10~20年";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb488e650003")){
                smokeHistory=smokeHistory+" 吸烟年数>20年";
            }


            //吸烟量
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb491e890004")){
                smokeHistory=smokeHistory+" 每日吸烟量<5支";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb496b4b0005")){
                smokeHistory=smokeHistory+" 每日吸烟量半包";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb521f820006")){
                smokeHistory=smokeHistory+" 每日吸烟量一包";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb52814d0007")){
                smokeHistory=smokeHistory+" 每日吸烟量>1包";
            }

            //是否已戒烟
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb5419640008")){
                smokeHistory=smokeHistory+" 没有戒烟";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb54cc260009")){
                smokeHistory=smokeHistory+" 戒烟五年以内";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb569671000a")){
                smokeHistory=smokeHistory+" 戒烟5~10年";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb574f50000b")){
                smokeHistory=smokeHistory+" 戒烟10年以上";
            }


            //饮酒史
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb5f21a70010")){
                drinkHistory=drinkHistory+" 有饮酒史";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb64fc420021")){
                drinkHistory=drinkHistory+" 无饮酒史";
            }

            //饮酒种类
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb60177a0011")){
                drinkHistory=drinkHistory+" 饮酒种类:啤酒";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb608ef40012")){
                drinkHistory=drinkHistory+" 饮酒种类:黄酒";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb6184230013")){
                drinkHistory=drinkHistory+" 饮酒种类:白酒";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb61d75d0014")){
                drinkHistory=drinkHistory+" 饮酒种类:其他";
            }

            //饮酒年数
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb62773e0015")){
                drinkHistory=drinkHistory+" 饮酒年数<5年";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb63081e0016")){
                drinkHistory=drinkHistory+" 饮酒年数5~10年";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb6395790017")){
                drinkHistory=drinkHistory+" 饮酒年数10~20年";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb63f4510018")){
                drinkHistory=drinkHistory+" 饮酒年数>20年";
            }

            //饮酒量
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb6413d30019")){
                drinkHistory=drinkHistory+" 饮酒量<1两";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb642c74001a")){
                drinkHistory=drinkHistory+" 饮酒量1~2两";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb64498a001b")){
                drinkHistory=drinkHistory+" 饮酒量3~5两";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb64619e001c")){
                drinkHistory=drinkHistory+" 饮酒量>5两";
            }

            //是否已经戒酒
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb648366001d")){
                drinkHistory=drinkHistory+" 仍未戒酒";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb64a0a6001e")){
                drinkHistory=drinkHistory+" 戒酒五年以内";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb64bbcb001f")){
                drinkHistory=drinkHistory+" 戒酒5~10年";
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb64ddae0020")){
                drinkHistory=drinkHistory+" 戒酒10年以上";
            }



            //父母有无糖尿病
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd7870860006")){
                list1.set(12,"有");
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd7a433f0007")){
                list1.set(12,"无");
            }

            //家族史可多选
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd74585f0003")){
                farmilyHistory= farmilyHistory+" 高血压";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbd75bb3e0004")){
                farmilyHistory=farmilyHistory+" 糖尿病";
            }

            //是否有高血压
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb6df5120024")){
                list1.set(14,"有");
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb6e47540025")){
                list1.set(14,"无");
            }


            //高血压常用药
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb5bac5b000e")){
                highBlood=highBlood+" 不使用";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbdc4801c0022")){
                highBlood=highBlood+" 开博通片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbdc679e70024")){
                highBlood=highBlood+" 洛丁新片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbdc9f5f80026")){
                highBlood=highBlood+" 蒙诺";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbdcc19180028")){
                highBlood=highBlood+" 雅施达片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe0ff303002a")){
                highBlood=highBlood+" 平舒片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe20678d002d")){
                highBlood=highBlood+" 安博诺片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe218149002f")){
                highBlood=highBlood+" 安搏维片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe30112f0033")){
                highBlood=highBlood+" 代文胶囊";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe32c25e0035")){
                highBlood=highBlood+" 海捷亚片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe3386a40037")){
                highBlood=highBlood+" 科素亚片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe3499490039")){
                highBlood=highBlood+" 美卡素片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe361904003b")){
                highBlood=highBlood+" 平欣分散片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe37727d003d")){
                highBlood=highBlood+" 艾司洛尔针";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe38fbf1003f")){
                highBlood=highBlood+" 倍他乐克缓释片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe3a776b0041")){
                highBlood=highBlood+" 倍他乐克片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe3ba2200043")){
                highBlood=highBlood+" 达利全片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe42bb680045")){
                highBlood=highBlood+" 卡维地洛";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe43ef300047")){
                highBlood=highBlood+" 康忻片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe44206a0049")){
                highBlood=highBlood+" 安内真片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe44586c004b")){
                highBlood=highBlood+" 拜新同控释片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe448dec004d")){
                highBlood=highBlood+" 拜新同片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe44ccc7004f")){
                highBlood=highBlood+" 波依定缓释片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4500a80051")){
                highBlood=highBlood+" 缓释异博定片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4536580053")){
                highBlood=highBlood+" 兰迪片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe456d610055")){
                highBlood=highBlood+" 络活喜片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe45a44d0057")){
                highBlood=highBlood+" 施慧达片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe45e0de0059")){
                highBlood=highBlood+" 司乐平片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe464072005b")){
                highBlood=highBlood+" 硝苯地平片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4675c0005d")){
                highBlood=highBlood+" 氨苯喋啶片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe46a611005f")){
                highBlood=highBlood+" 布美他尼针";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe46dfcf0061")){
                highBlood=highBlood+" 呋塞米片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4710060063")){
                    highBlood=highBlood+" 呋塞米针";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe47446e0065")){
                highBlood=highBlood+" 丽泉针";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe47817a0067")){
                highBlood=highBlood+" 螺内酯片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe47b6240069")){
                highBlood=highBlood+" 氢氯噻嗪片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4b749a006b")){
                highBlood=highBlood+" 双克片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4ba732006d")){
                highBlood=highBlood+" 速尿片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4bd58f006f")){
                highBlood=highBlood+" 速尿针";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4c07940071")){
                highBlood=highBlood+" 速尿注射液";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4c41d80073")){
                highBlood=highBlood+" 特苏尼针";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4c71e70075")){
                highBlood=highBlood+" 托拉塞米片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4ca5af0077")){
                highBlood=highBlood+" 托拉塞米针";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4cdd120079")){
                highBlood=highBlood+" 托拉塞米注射液";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4d0bed007b")){
                highBlood=highBlood+" 伊迈格";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4d3f10007d")){
                highBlood=highBlood+" 其他类";
            }

            //是否有糖尿病
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb7d2fdb0030")){
                list1.set(16,"有");
            }
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb7d49cf0031")){
                list1.set(16,"无");
            }


            //糖尿病常用药
            if(qsResultEntity.getContentId().equals("402881fa5ffb3e13015ffb5a6828000d")){
                tangniaomedical=tangniaomedical+" 不使用";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4d7fd4007f")){
                tangniaomedical=tangniaomedical+" 达美康";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4dd9db0081")){
                tangniaomedical=tangniaomedical+" 瑞易宁";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4e12010083")){
                tangniaomedical=tangniaomedical+" 糖适平";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4e46a80085")){
                tangniaomedical=tangniaomedical+" 亚莫利";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4e78490087")){
                tangniaomedical=tangniaomedical+" 万苏平";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe59e174008a")){
                tangniaomedical=tangniaomedical+" 万苏平";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4e78490087")){
                tangniaomedical=tangniaomedical+" 万苏平";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe4e78490087")){
                tangniaomedical=tangniaomedical+" 孚来迪";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5a114f008c")){
                tangniaomedical=tangniaomedical+" 诺和龙";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5a466d008e")){
                tangniaomedical=tangniaomedical+" 唐力";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5a7b180090")){
                tangniaomedical=tangniaomedical+" 格华止";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5ab0310092")){
                tangniaomedical=tangniaomedical+" 二甲双胍缓释片";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5ae0e70094")){
                tangniaomedical=tangniaomedical+" 文迪雅";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5b112c0096")){
                tangniaomedical=tangniaomedical+" 卡司平";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5b44af0098")){
                tangniaomedical=tangniaomedical+" 拜唐苹";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5b8071009a")){
                tangniaomedical=tangniaomedical+" 卡博平";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5bb1fe009c")){
                tangniaomedical=tangniaomedical+" 倍欣";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe5be831009e")){
                tangniaomedical=tangniaomedical+" 胰岛素";
            }
            if(qsResultEntity.getContentId().equals("402881cd5fbd6c4c015fbe61aef900a0")){
                tangniaomedical=tangniaomedical+" 其他类";
            }

        }
        //家族史
        list1.set(10,smokeHistory);
        list1.set(11,drinkHistory);
        list1.set(13,farmilyHistory);
        list1.set(15,highBlood);
        list1.set(17,tangniaomedical);


        List list2=new ArrayList();
        QsUserQuestionEntity qsUserQuestionEntity1=(QsUserQuestionEntity)qsUserQuestionDao.getByPrimaryKey(QsUserQuestionEntity.class,quid);
        HashMap map1=new HashMap();

        map1.put("resultList",list1);
        map1.put("questionName","曙光问卷调查");
        map1.put("time",qsUserQuestionEntity1.getCreateTime().substring(0,10));

        return map1;
    }


}
